package com.shaozi.nc.hibservice;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shaozi.data.hib.dao.BaseHibDao;
import com.shaozi.data.hib.service.BaseServiceImpl;
import com.shaozi.lib.throwable.SzException;
import com.shaozi.nc.data.hibVO.ReportSetConfigVO;

@Service(value = "reportSetConfigService")
public class ReportSetConfigService extends BaseServiceImpl<ReportSetConfigVO> {

	@Autowired
	public ReportSetConfigService(BaseHibDao<ReportSetConfigVO> baseHibDao) {
		super(baseHibDao);
	}

	public List<ReportSetConfigVO> loadList(String companyId) throws SzException {
		String hql = "from ReportSetConfigVO where isClose=0 and companyId=" + companyId;
		return getDao().getDaoSupport().queryObjects(hql, -1, -1);
	}
}
